package com.example.jobback.mapper;

import com.example.jobback.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName: UserMapper
 * @Description: 用户父类mapper
 * @Author: lhb
 * @Date: 2025/5/15
 */
@Mapper
public interface UserMapper {
    User getUserByPhoneAes(String phoneAes);

    int registerUser(User user);

    int updateUserAvatar(Long userId, String lastUrl);

    int editBasicMessage(@Param("user") User user);

    User getUserByUserId(Long userId);

    Long getUserNum();

    List<User> getUsersByName(String content);

    List<User> getUsersByUserIds(@Param("userIds")List<Long> userIds);

    int resetPhoneAes(@Param("userId") Long userId, @Param("newPhoneAes") String newPhoneAes);
}
